from django.db import models

# Create your models here.


class UserModel(models.Model):
    username = models.CharField(max_length=20,verbose_name='用户名',unique=True)
    phone= models.CharField(max_length=11,verbose_name="phone",unique=True)
    email= models.EmailField(max_length=30,verbose_name="email",unique=True)
    password= models.CharField(max_length=6,verbose_name="password")
    credits=models.IntegerField(verbose_name='积分',null=True)
    Coupon=models.IntegerField(verbose_name='优惠券',null=True)
    class Meta:
        db_table="users"

